export const request = ({ url, type = "GET", data = {} } = {}) =>
    new Promise((resolve) => {
        $.ajax({
            url,
            type,
            data,
            success: resolve,
        });
    });
